const seq = require('sequelize')
const time = require('../time')

module.exports = {
  NAME: 'comp',
  TABLE: {
    comp_id: {
      type: seq.INTEGER(11),
      primaryKey: true,
      unique: true,
      autoIncrement: true,
      comment: 'comp_id 主键，自增',
      field: 'comp_id' //  相应的字段名称
    },
    name: {
      type: seq.STRING(64),
      comment: '组件类型名称',
      field: 'name'
    },
    icon: {
      type: seq.STRING(64),
      comment: '图标',
      field: 'icon' //  相应的字段名称
    },
    type: {
      type: seq.STRING(20),
      comment: '类型',
      field: 'type'
    },
    ...time.create_date,
    ...time.update_date,
    ...time.delete_date,
    ...time.create_by,
    ...time.update_by,
    ...time.delete_by
  }
}
